# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=py3-pastel
_realname=pastel
pkgver=0.2.0
pkgrel=1
pkgdesc="Python3 library to bring colors to your terminal"
options="!check" # No testsuite on tarball with setup.py
url="https://github.com/sdispater/pastel"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
source="https://pypi.io/packages/source/p/pastel/pastel-$pkgver.tar.gz"
builddir="$srcdir/$_realname-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"

	# do not install the tests package
	# see: https://github.com/sdispater/pastel/issues/7
	rm -r "$pkgdir"/usr/lib/python*/site-packages/tests
}

sha512sums="1a65e1ec919ce4a216310c9c2c7529b00c6b49d37eda082b1269c3d6298f2f14a1ecca8c427c7487f73478add171abb34359c0fa7a20a956d475ab17070bf697  pastel-0.2.0.tar.gz"
